import { defineService } from '../../../../src/index'

export default defineService({
  schema: {
    query: {
      username: { type: 'string' },
    },
    params: {
      uid: { type: 'number' },
    },
  },
  handler(ctx) {
    ctx.send({ p: ctx.params, q: ctx.query })
  },
})
